import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-01
 * Time: 21:01
 */

//输出一个整数的每一位，如：123的每一位是3，2，1
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        while(n != 0) {
            System.out.print(n % 10);
            if (n >= 10) {
                System.out.print(',');
            }
            n /= 10;
        }
    }
}
